package edu.sctu.practice.class02.Wangpeng.Test19;

import java.awt.*;

/**
 * Created by wp on 2015/11/9.
 */
public class Rectangle extends Graph {
    private int length;
    private int width;

    public Rectangle(Point center,int length,int width){
        super(center);
        this.length=length;
        this.width=width;
    }
    public void getInfo(){
        System.out.println("矩形:"+"校准点"+center+"长度"+length+"宽度"+width);
    }
}
